<?php
/**
 * PHP Persistence API
 * 
 * @package    Lazy Framework
 * @subpackage ppa
 * @author     Eduardo Marcolino <eduardo.marcolino@gmail.com>
 * @copyright  (c) 2010 Eduardo Marcolino <eduardo.marcolino@gmail.com>
 */

/** @Target("class") */
class Entity extends Annotation {}

/** @Target("class") */
class Table extends Annotation {}

/** @Target("property") */
class Column extends Annotation {
   public $name;
   public $type;
}

/** @Target("property") */
class Id extends Annotation {
   public $autoIncrement = true;
}

class Associations extends Annotation {
   public  $entity;
   public  $key;
 
   public function getType() {
   	return '';
   }
}

/** @Target("property") */
class ManyToOne extends Associations {
   public function getType() {
   	return 'many-to-one';
   }
}

/** @Target("property") */
class OnetoMany extends Associations {
   public function getType() {
   	return 'one-to-many';
   }
}
